package com.naiterui.ehp.bs.doctor.service.impl;

import com.naiterui.ehp.bp.utils.lang.ImageUtil;
import com.naiterui.ehp.bs.doctor.service.IStorageService;
import lombok.RequiredArgsConstructor;
import org.apache.commons.fileupload.FileUploadException;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author gaoliangliang
 * @date 2020/12/28 下午1:20
 **/
@Service
@RequiredArgsConstructor
public class StorageServiceImpl implements IStorageService {

    @Override
    public void updateById(String path, MultipartFile file) throws FileUploadException {

        ImageUtil.upload(path, file);
    }
}
